package com.heima.admin.controller.v1;

import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        String b = "aa1f";
        boolean matches = b.matches(".*\\d.*");
        System.out.println(matches);
    }
    public static boolean test1(String a) {
        char[] chars = a.toCharArray();
        char[] num = {'1','2','3','4','5','6','7','8','9','0'};
        int length = num.length;
        for (int i = 0; i < chars.length; i++) {
            for (int j = 0; j < num.length; j++) {
                if (chars[i] == num[j]) {
                    return true;
                }
            }
        }
        return false;
    }
}

class ArraySum {
    public static void main(String[] args) {
//        Scanner scanner = new Scanner(System.in);
//        System.out.println("输入第一个数字：");
//        int i = scanner.nextInt();
//        System.out.println("输入第二个数字：");
//        int k = scanner.nextInt();
        int j = 0;        int i= 0;
//        System.out.println("两数之和为：" + (i + k));
        String a =  "[" + i + "," + j + "]";
        System.out.println(a);


    }
}
